package lab02.test05;

public class Cube {
    //属性:长、宽、高
    int length;
    int width;
    int height;
    //行为:变量初始化、计算体积
    int volume(){
        System.out.println("立方体的体积："+length*width*height);
        return 0;
    }

    public static void main(String[] args) {
        Cube cube=new Cube();
        cube.height=5;
        cube.width=5;
        cube.length=5;
        cube.volume();
    }
}
